import { Comm } from "../utils/common";
class Sign extends Comm {
    constructor() {
        super();
    };
    /** 
     * 签到
     */
    sign() {
        return new Promise((resolve, reject) => {
            let props = {
                url: "/gateway/api/sign/do",
                type: "GET",
                sCallBack: res => {
                    resolve(res);
                },
                eCallBack: err => {
                    reject(err);
                }
            }
            this.request(props);
        });
    };
    /**
     * 获取签到详情
     */
    signDetail() {
        return new Promise((resolve, reject) => {
            let props = {
                url: "/gateway/api/sign/detail",
                type: "GET",
                sCallBack: res => {
                    resolve(res);
                },
                eCallBack: err => {
                    reject(err);
                }
            }
            this.request(props);
        });
    }
}

export { Sign }